
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<div id="searchDiv" class="ibox " style="display: none;">
	<div class="ibox-title collapse-link" style="cursor: pointer;"
		 title="展开/收起查询条件">

		<h5>查询条件</h5>
		<div class="ibox-tools"></div>

	</div>

	<form action="web/poAgreementHeadArchived/poaArchivedList" method="get">
		<div class="ibox-content m-b-sm border-bottom">
			<div class="row">
				<div class="col-sm-4">
					<div class="form-group">
						<label class="control-label" for="poName">合同名称</label>
						<input type="text" id="poName" name="poName" value="${param.poName}" class="form-control">
					</div>
				</div>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="control-label" for="poHeadCode">合同编码</label>
						<input type="text" id="poHeadCode" name="poHeadCode" value="${param.poHeadCode}" class="form-control">
					</div>
				</div>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="control-label" for="projectCode">合同单号</label>
						<input type="text" id="projectCode" name="projectCode" value="${param.projectCode}" class="form-control">
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-4">
					<div class="form-group">
						<label class="control-label" for="status">合同状态</label>
						<select class="select2 form-control" id="status" name="status">
							<option value="" selected="selected">请选择...</option>
							<c:forEach items="${requestScope.searchStatusMap}" var="postatus">
								<option value="${postatus.key}">${postatus.value}</option>
							</c:forEach>
						</select>
					</div>
				</div>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="control-label" for="staffCode">供应商名称</label>
						<select class="select2 form-control" id="staffCode" name="staffCode">
							<option value="" selected="selected">请选择...</option>
							<c:forEach items="${requestScope.vendorMap}" var="vendor">
								<option value="${vendor.key}">${vendor.value}</option>
							</c:forEach>
						</select>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12 text-right">
					<div class="form-group">
						<button type="submit" class="btn btn-w-m btn-primary">查询</button>
					</div>
				</div>
			</div>
		</div>

		<%-- 隐藏字段 --%>
		<input type="hidden" name="page" value="1">
	</form>
</div>

<!-- select2 -->
<script src="js/plugins/select2/select2.full.min.js"></script>

<script>
	$(document).ready(function(){
		//设置状态默认值
		if("${param.status}"!=""){
			$("#status").val("${param.status}");
		}
		//设置乙方名称
		if("${param.staffCode}"!=""){
			$("#staffCode").val("${param.staffCode}");
		}
		//初始化select2
		$('.select2').select2({width: "100%"});
	});
</script>
